package com.yike.user.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.yike.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.yike.common.api.Update;

/**
 * 商户表
 *
 * @author Sakura
 * @since 2024-09-03
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("qy_merchant")
@ApiModel(value = "Merchant对象")
public class Merchant extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "商户编号不能为空")
    @ApiModelProperty("商户编号")
    private String merchantNo;

    @ApiModelProperty("上级商户ID")
    private Long parentId;

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("商户名称")
    private String name;

    @ApiModelProperty("联系人")
    private String contact;

    @ApiModelProperty("联系电话")
    private String mobile;

    @ApiModelProperty("省code")
    private String provCode;

    @ApiModelProperty("市code")
    private String cityCode;

    @ApiModelProperty("区code")
    private String distCode;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("分佣比例（1-100）")
    private Integer commissionRate;

    @ApiModelProperty("状态：1正常 2禁用")
    private Integer status;

}
